package com.codeduck.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题目分类表
 * </p>
 *
 * @author ddh
 * @since 2025-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("code_duck_question_category")
@ApiModel(value="CodeDuckQuestionCategory对象", description="题目分类表")
public class CodeDuckQuestionCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "题目分类ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "题目分类名称")
    private String name;

    @ApiModelProperty(value = "题目分类描述")
    private String description;

    @ApiModelProperty(value = "分类URL路径")
    private String url;

    @ApiModelProperty(value = "创建者ID，关联 code_duck_user 表")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    @ApiModelProperty(value = "最后修改人ID, 关联 code_duck_user 表")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "排序字段（数值越小排序越靠前）")
    private String sort;


}
